<!DOCTYPE html>

<html>

<head>

<title> zad 9</title>
</head>
<body>
<?php

$a = mt_rand(0,20);
$k =($a*($a-1)+1); 
echo "<table>";
for($i=1;$i<=$a;$i++)
{
    echo '<tr>';
	for($j =$i;$j<=$k;$j=$j+$a)
	{
	  echo "<td>".$j."</td>";
	}
	$k++;
	echo "</tr>";
}
echo "</table>";



?>

</body>
</html>